/**
 * 
 */
package com.explgo.backend.service;

/**
 * This exception supports L10N message in a runtime exception.
 * 
 * @author Jialiang(Cain) Wang
 * 
 */
public class GenericException extends RuntimeException {
	private static final long serialVersionUID = 8409911589722447464L;

	/**
	 * The message arguments if its message is an L10N message code.
	 * */
	private Object[] arguments;

	public GenericException(String message, Object... arguments) {
		super(message);
		this.arguments = arguments;
	}

	/**
	 * @return the arguments
	 */
	public Object[] getArguments() {
		return arguments;
	}

	/**
	 * @param arguments
	 *            the arguments to set
	 */
	public void setArguments(Object[] arguments) {
		this.arguments = arguments;
	}

}
